package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 送货单对象 biz_delivery_note
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
public class BizDeliveryNote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 送货单ID */
    private Long deliveryNoteId;

    /** 送货单编号 */
    @Excel(name = "送货单编号")
    private String deliveryNoteNo;

    /** 供货商编码 */
    @Excel(name = "供货商编码")
    private String supplierCode;

    /** 供货商名称 */
    @Excel(name = "供货商名称")
    private String supplierName;

    /** 采购订单编号（聚合自批次） */
    @Excel(name = "采购订单编号")
    private String orderNo;

    /** 送货日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryDate;

    /** 送货状态：CREATED-已创建, CONFIRMED-已发货, RECEIVED-已收货 */
    @Excel(name = "送货状态：CREATED-已创建, CONFIRMED-已发货, RECEIVED-已收货")
    private String deliveryStatus;

    /** 总箱数 */
    private Long totalBoxes;

    /** 总数量 */
    @Excel(name = "总数量")
    private BigDecimal totalQuantity;

    /** 收货人 */
    private String receiver;

    /** 收货时间 */
    private Date receivedTime;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    /** 送货单批次明细信息 */
    private List<BizDeliveryBatch> bizDeliveryBatchList;

    /** 送货单箱码关联信息 */
    private List<BizDeliveryBarcode> bizDeliveryBarcodeList;

    public void setDeliveryNoteId(Long deliveryNoteId) 
    {
        this.deliveryNoteId = deliveryNoteId;
    }

    public Long getDeliveryNoteId() 
    {
        return deliveryNoteId;
    }

    public void setDeliveryNoteNo(String deliveryNoteNo) 
    {
        this.deliveryNoteNo = deliveryNoteNo;
    }

    public String getDeliveryNoteNo() 
    {
        return deliveryNoteNo;
    }

    public void setSupplierCode(String supplierCode) 
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }

    public void setSupplierName(String supplierName) 
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName() 
    {
        return supplierName;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setDeliveryDate(Date deliveryDate) 
    {
        this.deliveryDate = deliveryDate;
    }

    public Date getDeliveryDate() 
    {
        return deliveryDate;
    }

    public void setDeliveryStatus(String deliveryStatus) 
    {
        this.deliveryStatus = deliveryStatus;
    }

    public String getDeliveryStatus() 
    {
        return deliveryStatus;
    }

    public void setTotalBoxes(Long totalBoxes) 
    {
        this.totalBoxes = totalBoxes;
    }

    public Long getTotalBoxes() 
    {
        return totalBoxes;
    }

    public void setTotalQuantity(BigDecimal totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public BigDecimal getTotalQuantity() 
    {
        return totalQuantity;
    }

    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }

    public void setReceivedTime(Date receivedTime) 
    {
        this.receivedTime = receivedTime;
    }

    public Date getReceivedTime() 
    {
        return receivedTime;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<BizDeliveryBatch> getBizDeliveryBatchList()
    {
        return bizDeliveryBatchList;
    }

    public void setBizDeliveryBatchList(List<BizDeliveryBatch> bizDeliveryBatchList)
    {
        this.bizDeliveryBatchList = bizDeliveryBatchList;
    }

    public List<BizDeliveryBarcode> getBizDeliveryBarcodeList() {
        return bizDeliveryBarcodeList;
    }

    public void setBizDeliveryBarcodeList(List<BizDeliveryBarcode> bizDeliveryBarcodeList) {
        this.bizDeliveryBarcodeList = bizDeliveryBarcodeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deliveryNoteId", getDeliveryNoteId())
            .append("deliveryNoteNo", getDeliveryNoteNo())
            .append("supplierCode", getSupplierCode())
            .append("supplierName", getSupplierName())
            .append("orderNo", getOrderNo())
            .append("deliveryDate", getDeliveryDate())
            .append("deliveryStatus", getDeliveryStatus())
            .append("totalBoxes", getTotalBoxes())
            .append("totalQuantity", getTotalQuantity())
            .append("receiver", getReceiver())
            .append("receivedTime", getReceivedTime())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("bizDeliveryBatchList", getBizDeliveryBatchList())
            .append("bizDeliveryBarcodeList", getBizDeliveryBarcodeList())
            .toString();
    }
}
